import request from '@/utils/request'

// 查询变动上报列表
export function listChangeReport(query) {
  return request({
    url: '/check/changeReport/list',
    method: 'get',
    params: query
  })
}

// 查询变动上报详细
export function getChangeReport(changeReportId) {
  return request({
    url: '/check/changeReport/' + changeReportId,
    method: 'get'
  })
}

// 新增变动上报
export function addChangeReport(data) {
  return request({
    url: '/check/changeReport',
    method: 'post',
    data: data
  })
}

// 修改变动上报
export function updateChangeReport(data) {
  return request({
    url: '/check/changeReport',
    method: 'put',
    data: data
  })
}

// 删除变动上报
export function delChangeReport(changeReportId) {
  return request({
    url: '/check/changeReport/' + changeReportId,
    method: 'delete'
  })
}
